import {get,post,put,del} from '@/utils/request/axios';

/**
 * 分页查询数据字典
 * @param obj
 * @returns {*}
 */
export const pageDictType = (obj)=>{
  const url = "/leader/sysDictType/listPageSysDictType";
  return get(url,obj);
}

/**
 * 新增数据字典
 * @param obj
 * @returns {*}
 */
export const addDictType = (obj)=>{
  const url = "/leader/sysDictType";
  return post(url,obj);
}

/**
 * 修改数据字典
 * @param obj
 * @returns {*}
 */
export const updateDictType = (id,obj)=>{
  const url = "/leader/sysDictType/"+id;
  return put(url,obj);
}

/**
 * 修改数据字典状态
 * @param obj
 * @returns {*}
 */
export const deleteDictType = (id)=>{
  const url = "/leader/sysDictType/"+id;
  return del(url);
}
